const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');//分页

var schema = new mongoose.Schema({
    name:String,
    city:String,
    title:String,
    content:String,
    commentnum:Number,
    browsenum:Number,
    likenum:Number,
    date:{type:Date, default: Date.now},
    desc:String,
});

schema.plugin(mongoosePaginate);
module.exports =  mongoose.model('Comment',  schema ,'comment');